package org.springblade.oa.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.oa.entity.Bxfymx;

import java.io.*;

/**
 * @author LK
 * @version 1.0.0
 * @Title: BxfymxVO.java
 * @Description: TODO    报销费用明细视图对象
 * @date 2020/1/15 19:57
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BxfymxVO对象", description = "BxfymxVO对象")
public class BxfymxVO extends Bxfymx implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "发票类型名称")
	private String fplxName;

	@ApiModelProperty(value = "费用类型名称")
	private String fylxName;

	@ApiModelProperty(value = "替补费用类型名称")
	private String tbfylxName;

	@ApiModelProperty(value = "项目名称")
	private String xmbhName;

	@ApiModelProperty(value = "项目名称简写")
	private String xmbhAbbName;

	public Object myClone(){
		BxfymxVO bxfymxVO=null;
		ByteArrayOutputStream bos=new ByteArrayOutputStream();
		try {
			ObjectOutputStream oos=new ObjectOutputStream(bos);
			oos.writeObject(this);
			ByteArrayInputStream bis=new ByteArrayInputStream(bos.toByteArray());
			ObjectInputStream ois=new ObjectInputStream(bis);
			bxfymxVO=(BxfymxVO)ois.readObject();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
		return bxfymxVO;
	}
}

